package com.example.springbootmybatis.service;

import com.example.springbootmybatis.entity.CodeValue;
import com.example.springbootmybatis.entity.Product;
import com.example.springbootmybatis.mapper.CodeValueMapper;
import com.example.springbootmybatis.mapper.ProductMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @title: CodeValueService
 * @Author Tan
 * @Date: 2021/6/24 22:18
 * @Version 1.0
 */
@Service
public class CodeValueService {
    @Resource
    private CodeValueMapper codeValueMapper;

    public List<CodeValue> SearchProductCatgory() {
        CodeValue entity = new CodeValue();
        entity.setCodeId("productCatgory");
        List<CodeValue> codeValueList = codeValueMapper.selectByKey(entity);
        return codeValueList;
    }

}
